﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="HOrganizationServiceFrame.ascx.cs"
    Inherits="AB.ServiceDirectory.Design.WebUserControls.Frame.HOrganizationServiceFrame" %>
<%@ Import Namespace="AB.ServiceDirectory" %>
<asp:UpdatePanel ID="UpdatePanel1" runat="server">
    <ContentTemplate>
        <asp:Panel ID="CurrentListSupportingMaterials" ClientIDMode="Static" runat="server">
            <asp:GridView ID="GridViewOrganizationService" CssClass="tablesorter" runat="server" EmptyDataText="No data available"
                AutoGenerateColumns="False" AllowPaging="True" PageSize="15" AllowSorting="True"
                DataSourceID="ObjectDataSourceSupportingMaterial" OnRowCreated="GridViewOrganizationService_RowCreated"
                OnSelectedIndexChanged="GridViewOrganizationService_SelectedIndexChanged" OnSelectedIndexChanging="GridViewOrganizationService_SelectedIndexChanging">
                <Columns>
                    <asp:BoundField DataField="OrganizationName" HeaderText="Organization Name" SortExpression="OrganizationName">
                        <HeaderStyle CssClass="header" />
                    </asp:BoundField>
                    <asp:BoundField DataField="Description" HeaderText="Description" SortExpression="Description">
                        <HeaderStyle CssClass="header" />
                    </asp:BoundField>
                    <asp:BoundField DataField="Roles" HeaderText="Roles" SortExpression="Roles">
                        <HeaderStyle CssClass="header" />
                    </asp:BoundField>

                    <asp:TemplateField>
                        <ItemTemplate>
                        
                        </ItemTemplate>
                        <ItemStyle Width="70px" />
                        <HeaderStyle CssClass="header" />
                    </asp:TemplateField>
                  
                </Columns>
                <EmptyDataTemplate>
                    <blockquote>
                        There are no items to show.</blockquote>
                </EmptyDataTemplate>
                <PagerStyle CssClass="pagination_table" />
            </asp:GridView>
            <asp:ObjectDataSource ID="ObjectDataSourceOrganizationService" runat="server" SelectMethod="GetOrganizationService"
                TypeName="AB.ServiceDirectory.BO.HOrganizationServiceBO" OnSelecting="ObjectDataSourceOrganizationServiceSelecting"
                EnablePaging="true" SelectCountMethod="GetOrganizationSerivceCount" StartRowIndexParameterName="startRowIndex"
                MaximumRowsParameterName="maxRows" SortParameterName="sortType">
                <SelectParameters>
                    <asp:Parameter Name="filter" Type="Object" ConvertEmptyStringToNull="false" />
                </SelectParameters>
            </asp:ObjectDataSource>
        </asp:Panel>
    </ContentTemplate>
</asp:UpdatePanel>
